function OS_Effect(host,id)
{
	this.$super=OS_Sprite;
	if (this.$super(host,id)===false) return;
	delete this.$super;
	
	this.timeLine={};
	this.length=0;
	
	this.loadTimestamps=function()
	{
		var timestamps=this.resourceNode.getElementsByTagName("timeline")[0].getElementsByTagName("timestamp");
		this.length=timestamps.length;
		for (var i=0;i<timestamps.length;i++)
		{
			var timestamp=timestamps[i];
			var index=Number(timestamp.getAttribute("index"));
			var frameid=timestamp.childNodes[0].nodeValue;
			this.timeLine[index]=OS_Resource.resource.get(frameid);
		}
	}
}
